#include "ctype.h"


int
isupper(int c)
{
	return (c >= 'A' && c <= 'Z');
}

int
islower(int c)
{
	return (c >= 'a' && c <= 'z');
}

int
isalpha(int c)
{
	return ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'));
}

int
isdigit(int c)
{
	return (c >= '0' && c <= '9');
}

int
isalnum(int c)
{
	return ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')
			|| (c >= '0' && c <= '9'));
}

int
isspace(int c)
{
	return (c == ' ' || (c >= '\t' && c <=  '\r'));
}

int
isprint(int c)
{
	return (c == ' ' || (c >= '!' && c <= '~'));
}

int
toupper(int c)
{
	return ((c >= 'a' && c <= 'z') ? (c + 'A' - 'a') : c);
}

int
tolower(int c)
{
	return ((c >= 'A' && c <= 'Z') ? (c + 'a' - 'A') : c);
}

